//
//  ForegroundView.m
//  Stock_Pro
//
//  Created by imuse on 11-1-11.
//  Copyright 2011 gaotime. All rights reserved.
//

#import "ForegroundView.h"


@implementation ForegroundView

- (id)initWithFrame:(CGRect)frame {
    if ((self = [super initWithFrame:frame])) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)dealloc {
}

-(void)setHiddenDelegate:(id <ForegroundViewDelegate>)anObject
{
	self.delegate = anObject;
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
	[self setHidden:YES];
	if (self.delegate)
	{
		[self.delegate hidden:self];
	}
}

@end
